package client;

public class Position {
	private int[] x;
	private int[] y;
	
	public Position(BlockShape type, Orientation or, int lefterX, int upperY){
		switch (type) {
		case L_SHAPE:
			x = new int[4];
			y = new int[4];
			x[0] = lefterX;
			y[0] = upperY;
			switch (or) {
			case NORTH: /* normal L */ 
				x[2] = x[1] = x[0];
				x[3] = x[2] + 1;
				y[1] = y[0] + 1;
				y[3] = y[2] = y[1] + 1;				
			}
			break;
		}
		
	}

	public void updateY(int step) {
		for (int i : y) {
			i = i + step;
		}		
	}
	public void updateX(int step) {
		for (int i: x) {
			i = i + step;
		}
	}

	public void updateOrientation(Orientation newOrientation) {
		// TODO		
	}
}
